from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

# 创建路由器
router = DefaultRouter()

# 注册ViewSet
router.register(r'', views.ProjectViewSet, basename='project')

urlpatterns = [
    # 包含路由器生成的URL
    path('', include(router.urls)),
]